
Share (%) of respondents replying “very happy” or “quite happy” when asked “Taking all things together, would you say you are very happy, quite happy, not very happy or not at all happy?”
The following chart demonstrates that it is possible to approximate
the functionality of our World in Data grapher for multicountry
selection using R, specifically with the crosstalk package
and a small amount of custom JavaScript. For more information on how to
achieve this, see this
Stack Overflow question.
Note that this is not a required task, but rather a showcase of what can be achieved. The code for this will be shared when we provide the solutions for the exercise.
Data source: World Happiness Report